<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/6 0006
 * Time: 16:38
 */

namespace app\wap\validate;


use think\Validate;

class Beili extends Validate
{
    protected $rule = [
        'data'  => '',
        'name'  => 'require',
        'title' => 'require',
        'time'  => 'require',
        'id'    => 'require'
    ];
    protected $message = [
        'name.require'      =>  '请选择交易对',
        'title.require'     =>  '请选择交易对',
        'time.require'      =>  '请选择提醒时间',
        'time.in'           =>  '请选择正确的时间',
        'id.require'        =>  '请选择交易对'
    ];

    protected $scene = [
        'beilimindlist'  =>['data'],
        'beilimindset'   =>['title','time'],
        'beiliminddel'   =>['title','time'],
    ];
}